


#include "stdafx.h"
#include "CAsyncDBLOGWorkMgr.h"


CAsyncDBLOGWorkMgr* CAsyncDBLOGWorkMgr::m_cpSelf = NULL;

CAsyncDBLOGWorkMgr::CAsyncDBLOGWorkMgr() : NAsyncWorkMgr( 40 )
{
	m_bOK = false;
	m_bOK = true;
};


CAsyncDBLOGWorkMgr::~CAsyncDBLOGWorkMgr()
{

}

bool CAsyncDBLOGWorkMgr::CreateInstance( void )
{
	assert( NULL == m_cpSelf );
	if( NULL != m_cpSelf ) return false;
	m_cpSelf = new( nothrow ) CAsyncDBLOGWorkMgr();
	if( NULL == m_cpSelf ) return false;
	if( false == m_cpSelf->isOK() ){ delete m_cpSelf; m_cpSelf = NULL; return false; }
	return true;

}

void CAsyncDBLOGWorkMgr::DestroyInstance( void )
{
	if( NULL != m_cpSelf ){ delete m_cpSelf; m_cpSelf = NULL; };
}



